disableSerialization;
if  (breakclic <= 1 ) then
{
	clic1 = false;
	_display = finddisplay 8000;
	_txt = _display displayctrl 200;

		
	_txt CtrlSetText "Left click on the map";
	_txt CtrlSetTextColor [0.9,0.9,0.9,1];

	Ctrlshow [200,true];sleep 0.2; CtrlShow [200,false];sleep 0.2;Ctrlshow [200,true] ;

	onMapSingleClick "destination_x = _pos select 0;
		destination_y = _pos select 1;
		destination_z = _pos select 2 ;

		publicVariable ""destination_x"";
		publicVariable ""destination_y"";
		publicVariable ""destination_z"";
		clic1 = true;
	onMapSingleClick """";" ; 
	for "_j" from 10 to 0 step -1 do 
		{
		hint format["Click On Map %1, or wait for cancellation",_j];
		sleep 1;
		//hint "pause";
			//if (_clic1) exitWith {};
			if (clic1) then
			{
				hint "";
				_j=0;
				clic1 = false;
				creation_objectif = true;
				crea_obj = true ;
				publicvariable "crea_obj";
				publicVariable "creation_objectif";
			};
			clic1 = false;

	}; 
		sleep 0.5;
		hint "";
		breakclic = 0; 
		//	waitUntil {(clic1)};
};
if (true) exitWith {};
